.class public abstract Lrexsee/core/browser/clazz/ExtensionListener;
.super Ljava/lang/Object;
.source "ExtensionListener.java"


# instance fields
.field public final extensions:[Ljava/lang/String;


# direct methods
.method public constructor <init>([Ljava/lang/String;)V
    .locals 3
    .param p1, "listenedExtensions"    # [Ljava/lang/String;

    .prologue
    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 9
    iput-object p1, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    .line 10
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    array-length v1, v1

    if-lt v0, v1, :cond_0

    .line 13
    return-void

    .line 11
    :cond_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    iget-object v2, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v0

    .line 10
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public contains(Ljava/lang/String;)Z
    .locals 4
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    const/4 v3, 0x0

    .line 19
    iget-object v1, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    if-nez v1, :cond_0

    move v1, v3

    .line 24
    :goto_0
    return v1

    .line 20
    :cond_0
    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object p1

    .line 21
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    iget-object v1, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    array-length v1, v1

    if-lt v0, v1, :cond_1

    move v1, v3

    .line 24
    goto :goto_0

    .line 22
    :cond_1
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "."

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lrexsee/core/browser/clazz/ExtensionListener;->extensions:[Ljava/lang/String;

    aget-object v2, v2, v0

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const/4 v1, 0x1

    goto :goto_0

    .line 21
    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method

.method public abstract run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V
.end method

.method public abstract shouldAddToHistory()Z
.end method

.method public abstract shouldProcessLocal()Z
.end method

.method public abstract shouldProcessOnline()Z
.end method
